home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / PCCDEMO.ZIP / COMP1.EXE / DOSIDEAS.PRS < prev    next >
Text File  |  1993-12-20  |  13KB  |  221 lines

  1.                                                  âÄÆ êâäÇÆ ╬╠╬╠╬╠╬╠╬╠╬╠╧╧╬╠╡
  2.        ≤τΣ ßΣ≤≤Σ± Γε∩√                            
  3.                                    │         ≤τΣ ßΣ≤≤Σ± Γε∩√
  4.       ≤≥±'≥ ∞απΣ ≥Φ∞∩δΣ            │
  5.                                    │     Most people  use the  dos COPY
  6.       ΓδΣα±Φφµ ≤τΣ ∞Σ≥≥            │  command to  copy  files  from the
  7.                                    │  hard drive  to a  floppy, or from
  8.        ≥Φ∞∩δΣ ≥εδ⌠≤Φεφ             │  one directory  on the  hard drive
  9.                                    │  to another.
  10.          α≥ΓΦΦ ≤αßδΣ               │     By using the  copy command you
  11.                                    │  are  not  getting  the  most from
  12.      ≈Γε∩√ ≤ε ≤τΣ ±Σ≥Γ⌠Σ           │  your computer, and in many cases,
  13.          ┌─┐                       │  you spend  far too  much time and
  14.       ┌──┘ │┌────┐┌────┐           │  effort,  when  there  is  a short
  15.       │ ┌┐ ││ ┌┐ ││  ──┤           │  cut.
  16.       │ └┘ ││ └┘ │├──  │           │
  17.       └────┘└────┘└────┘           │     The  XCOPY   command   is  far
  18.         ┌─┐                ╒       │  superior to COPY.
  19.   ┌─┐┌──┘ │┌────┐┌────┐┌────┐      │     Whereas COPY loads into memory
  20.   │ ││ ┌┐ ││ ── │├─── ││  ──┤      │  one file at a time, then accesses
  21.   │ ││ └┘ ││ ───┤│ ── │├──  │      │  the destination,  then  goes back
  22.   └─┘└────┘└────┘└────┘└────┘      │  and looks  for the  spot where it
  23.                      
  24.  
  25. left off, the XCOPY command loads  │  options available,   and the most
  26. into memory as  many files -to be  │  noticeble  of   all  is   the  /S
  27. copied-  as  possible,  and  then  │  option.
  28. copies  all   these   files  from  │     This option  enables  the user
  29. memory    to    the   destination  │  to  duplicate  a  whole directory
  30. directory  in  one  go.  Which in  │  into the    destination,  ie: All
  31. turn  saves  a  lot  of  'search'  │  the   files    in    the   source
  32. time.                              │  directory,  AS  WELL  as  all the
  33.                                    │  subdirectories, including all the
  34.    Another   handy   feature   of  │  files         within        these
  35. XCOPY, is the ability to create a  │  subdirectories.
  36. new  directory  as  part  of  the  │
  37. copying process, so a destination  │     Let's assume  we want  to copy
  38. directory   would    be   created  │  all the files  and directories on
  39. automatically if it didn't exist,  │  the hard drive  to a directory on
  40. whereas  with  the  COPY command,  │  the  floppy   disk.   The  source
  41. you had  to create  the directory  │  directory    is    C:\WORK,   the
  42. before hand.                       │  destination directory is B:\WORK,
  43.    Another  large  advantage  the  │  within the  WORK  directory there
  44. XCOPY command  has, is  the extra  │  are another  3  directories, WPS,
  45.  
  46.  
  47. HLP, TXT,  and  we  want  to copy  │  MD TXT
  48. them as well.                      │  C:
  49.    Here is what the process looks  │  CD..
  50. like using the COPY command:       │  CD TXT
  51.                                    │  COPY *.* B:\WORK\TXT
  52. B:                                 │
  53. MD WORK                            │  Now let's  see  what  the process
  54. CD WORK                            │  would look like using XCOPY:
  55. C:                                 │
  56. CD WORK                            │  CD WORK
  57. COPY *.* B:\WORK                   │  XCOPY *.* B:\WORK  /S
  58. B:                                 │
  59. CD WORK                            │     Yes, all it takes is 2 lines!
  60. MD WPS                             │  XCOPY  will  make  the  directory
  61. C:                                 │  WORK on  drive  B:,  and  all the
  62. CD WPS                             │  sub-directories, and it will copy
  63. .                                  │  all  the  files  from  these sub-
  64. .                                  │  directories, in  turn duplicating
  65. .                                  │  the WORK  directory on  drive C:,
  66. B:                                 │  onto drive B: .
  67.  
  68.  
  69.    In   this   case,   the  XCOPY  │  sure  that   no  virus  infection
  70. command   saves   us   22   extra  │  occurs.
  71. command, most handy.               │
  72.                                    │     You  can   actually  see  what
  73.                                    │  TSR's are loaded  in memory using
  74.        ≤≥±'≥ ∞απΣ ≥Φ∞∩δΣ           │  the command:
  75.                                    │
  76.    A TSR is  a program that stays  │    MEM /C  (or /P for earlier DOS
  77. resident  after  it  has finished  │    versions, check in your manual)
  78. execution. That's  where the name  │
  79. Terminate  Stay   Resident  (TSR)  │     This  command  shows  you  the
  80. comes from.                        │  memory content, it  lists all the
  81.    An example  of  a  TSR  is the  │  active programs,  where  they are
  82. mouse  driver,  which  is  loaded  │  in  memory,  and  how  much  they
  83. once  (at  boot  up),  and  stays  │  occupy.
  84. active in  memory as  long as the  │  Here is an  example result of the
  85. machine is ON.                     │  command  MEM /P :
  86.    Some virus  detection software  │
  87. stay  resident   in   memory,  to  │  Modules using memory below 1 MB:
  88. monitor the  system, and  to make  │
  89.  
  90.  
  91.   Name           Total             │  number of  TSR's  loaded  in your
  92.   --------  ----------------       │  AUTOEXEC.BAT     is    essential,
  93.   MSDOS        13469   (13K)       │  because, software  at  the moment
  94.   HIMEM         1152    (1K)       │  is becoming more and more 'memory
  95.   EMM386        3120    (3K)       │  hungry'.
  96.   ANSI          4208    (4K)       │     One way  to reduce  the number
  97.   COMMAND       2912    (3K)       │  of   programs   loaded   in   the
  98. >>GMOUSE        9872   (10K)       │  conventional  memory,  is  to use
  99.   Free        779232  (761K)       │  LOADHIGH (or  DEVICEHIGH) to load
  100.                                    │  the TSR into HIGH MEMORY. We will
  101.                                    │  look at  memory  and how  to make
  102.    In this  example, you  can see  │  the most of it in later issues of
  103. the the  mouse  driver  loaded in  │  PC COMPLETE.
  104. memory and  the amount  of memory  │
  105. it takes up.                       │
  106.                                    │          ΓδΣα±Φφµ ≤τΣ ∞Σ≥≥
  107.    So if you  are wondering where  │
  108. your  640K  of  memory  is  gone,  │     If you  have  a modem,  or you
  109. chances are, TSR's  have taken it  │  receive many  shareware programs,
  110. over! That  is  why  reducing the  │  you  will  notice,  that  after a
  111.  
  112.  
  113. while, you  can not  recall which  │
  114. archive   has    which   program.  │
  115. PMNOV10.zip  doesn't  really tell  │          ≥Φ∞∩δΣ ≥εδ⌠≤Φεφ
  116. you much! Here is a simple way to  │
  117. catalogue  your  collection  very  │     You    have    been    getting
  118. quickly.                           │  little  utilities   and  programs
  119.    Simply echo  a  record  in the  │  that you just might NEED one day,
  120. catalogue to a specific file.      │  and  you  don't  want  to  make a
  121. IE (on one line):                  │  separate directory   for  each of
  122. echo   COMPLETE.ZIP    |       an  │  these  10K  files,    (In general
  123. interactive   computer  magazine.  │  it's not a good  idea to have 100
  124. V/E/C. etc >> C:\DOS\CAT.LOG       │  directories at your ROOT
  125.                                    │  directory!).
  126.                                    │     At the same time you shouldn't
  127.    Obviously you  can  improve on  │  put them in  your ROOT directory,
  128. this by  creating  a  batch file.  │  your ROOT directory should have a
  129. However, this is basicly what you  │  maximum  of  10  files.  And  you
  130. would need, instead of opening an  │  don't want  to  put them  in your
  131. editor,  or running a specialised  │  DOS directory  (God  knows  it is
  132. catalogue program.                 │  packed with files already!).
  133.  
  134.  
  135.                                    │  directory, in mine I have:
  136.    An easy  answer  is  to create  │
  137. one directory  where you  can put  │  GMOUSE (mouse driver).
  138. all those utilities  that you may  │  SCAN (Virus scaner).
  139. need  one  day.   Call  this  new  │  CLEAN (Virus remover).
  140. directory MISC, or UTILS.          │  All my batch files.
  141.    And include  this directory in  │  STUPENDOS (A great file manager).
  142. your  PATH,  so  you  can  access  │  PKZIP,  ARJ,  LHA  and  the likes
  143. these files from anywhere.         │  (Compression utilities).
  144. (To    do    this    Load    your  │  SOUND (It turns off that ANNOYING
  145. AUTOEXEC.BAT  into   your    text  │  PC speaker sound!).
  146. editor  (ie:  EDIT  AUTOEXEC.BAT,  │  ....the list goes  on, all in all
  147. Look for a  line that starts with  │  109 files, over 2 megs!.
  148. : PATH  ....  And add  to  it the  │
  149. name of  the extra  directory you  │     I  am  sure  that  many people
  150. want       to       add.      ie:  │  have  made   a  "MISC"  directory
  151. PATH=C:\DOS;C:\UTILS)              │  already, but  with the  number of
  152.                                    │  people I  have seen  with 300 odd
  153.    Just to  give  you an  idea of  │  files in  their  root  OR/AND DOS
  154. what you  can  put  in  your MISC  │  directory  (!)   I   thought  I'd
  155.  
  156.  
  157. better suggest it.                 │  when writing batch files. We have
  158.                                    │  provided  the  ascii  table  in a
  159.    Another good directory to have  │  file called ASCII.TBL.
  160. is   a   Misc   Games   directory  │     With   this   you  can  create
  161. (MISCGAME, or just GAMES) , where  │  boarders, large  titles, and more
  162. you can put all those small games  │  using  this  simple  table  and a
  163. that you get.                      │  text editor.
  164.                                    │
  165.                                    │
  166.           α≥ΓΦΦ ≤αßδΣ              │        ≈Γε∩√ ≤ε ≤τΣ ±Σ≥Γ⌠Σ
  167.                                    │
  168.                                    │     How many times  have you tried
  169.    Usually  to   get   any  ASCII  │  to  copy  a  collection  of files
  170. character you  simply  press ALT-  │  from your Hard  Drive to a floppy
  171. NUMBER, where numb  is  the ascii  │  disk,  and  the  files  took more
  172. number of the  character typed on  │  space than there was on the disk,
  173. the keypad. However, some editors  │  and when you  do try  to copy the
  174. will not  allow  you to  use this  │  files, you  were given  the error
  175. for typing  the  'esc' character,  │  "Insufficient Disk Space", so you
  176. this is  a  very  handy character  │  had to copy the 120 files, ONE BY
  177.  
  178.  
  179. ONE!!                              │
  180.    Well, there is an easy way you  │  Example:
  181. can copy  large  directories onto  │
  182. multiple  disks  using  dos.  The  │  Lets say we  have 60  files to be
  183. XCOPY command has  an option that  │  copied from the  DOS directory to
  184. only   copies   files   with  the  │  a disk in  drive A: ,  we use the
  185. archive attribute  set, and turns  │  command:
  186. the  archive  attribute  off once  │
  187. the files are copied.              │  XCOPY C:\DOS\*.* A:\ /M
  188.    There is a simple technique to  │  (Where *.* means, ALL.ALL files)
  189. take advantage of this feature to  │
  190. solve our problem.                 │     However,  there  is  only room
  191.    We use the  XCOPY command with  │  for 30 files on the disk in drive
  192. the   /M   switch   (the   option  │  A:, So, once  the copying process
  193. described above) when  we want to  │  reaches the  30ith  file,  we are
  194. copy  a   large   directory  onto  │  given the error:
  195. multiple  files.    And  then  we  │  "Insufficient Disk Space".
  196. reset  the  archive  attribute of  │     Now, all  the files  that HAVE
  197. all the files.                     │  been copied  (from 1  to 30) have
  198.                                    │  their  archive  attribute  turned
  199.  
  200.  
  201. OFF, whereas  the  uncopied files  │
  202. (31  to  60),  have  the  archive  │     However, we  have  to remember
  203. attribute turned ON (default).     │  to set the archive attribute back
  204.                                    │  on for all the  files. We do this
  205.    And because  the XCOPY command  │  using the command:
  206. with the  /M  switch  only copies  │
  207. files with  the archive attribute  │  ATTRIB +A C:\DOS\*.*
  208. ON, we  can  simply insert  a new  │  (where  +A   means  set   ON  the
  209. blank disk in drive A:, and issue  │  archive attribute).
  210. the same command:                  │
  211.                                    │     This method  will  save  you a
  212. XCOPY C:\DOS\*.* A:\  /M           │  lot  of  time   and  effort  when
  213.                                    │  trying to  copy  files  from your
  214.    This only includes those files  │  hard drive  to a  floppy disk, or
  215. which have  the archive attribute  │  when  you  are   using  a  system
  216. set ON  (ie: the  files that have  │  without a file  manager. And once
  217. not yet been copied).              │  you  try  this  method,  you will
  218.    And  we  repeat  this  process  │  find it simpler than it sounds.
  219. until  all  the  files  have been  │  NOTE:  This idea is  mentioned in
  220. copied.                            │  some DOS manuals ñ
  221.